package cn.iocoder.yudao.module.resource.controller.admin.messagecollection.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;

@Schema(description = "管理后台 - 消息仓库新增/修改 Request VO")
@Data
public class MessageCollectionSaveReqVO {

    @Schema(description = "消息id")
    private String messageId;

    @Schema(description = "消息来源", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Integer senderType;

    @Schema(description = "用户消息", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "用户消息不能为空")
    private String userText;

    @Schema(description = "用户消息hash", requiredMode = Schema.RequiredMode.REQUIRED)
    private String userTextHash;

    @Schema(description = "回复消息")
    @NotEmpty(message = "回复消息不能为空")
    private String replyText;

    @Schema(description = "回复消息hash")
    private String replyTextHash;

    @Schema(description = "消息类型, 1: 文本/音频, 2: 图片, 3: 视频", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    private Integer contentType;

    @Schema(description = "音频数据")
    private String audioData;

    @Schema(description = "扩展")
    private String extension;

}